#include <iostream>
#include <vector>
#include <list>
#include <algorithm>

using namespace std;

void test()
{

    list<int> li{5, 4, 3, 2, 1};
    vector<int> vi;

    copy(li.begin(), li.end(), back_inserter(vi));

    cout << equal(li.begin(), li.end(), vi.begin()) << endl;
    for (auto elem : vi)
    {
        cout << elem << " ";
    }
    cout << endl;
}

void test1()
{
    vector<int> vi{1, 2};
    fill_n(back_inserter(vi), 10, 0);

    for (auto elem : vi)
    {
        cout << elem << " ";
    }
    cout << endl;
}

int main(int argc, char *argv[])
{
    test1();

    return 0;
}
